package day06;

public class CarService {
	//面向父类编程--方法的参数列表写成父类
		/**
		 * 获取汽车单价
		 */
		public int getDanJia(Car car) {
			
			return car.danjia();
		}

		/**
		 * 获取汽车总价
		 */
		public long getTotalPrice(Car car) {
			return car.totalPrice();
		}
}
